package com.zzt.saleDesign;

//满减 100-10
public class VipMinusDecorator extends Decorator{
    public VipMinusDecorator() {}

    public VipMinusDecorator(Sale sale) {
        super(sale);
    }

    @Override
    public double discount(double price) {
        System.out.println("打折前:"+price);
        price = price*0.95;
        System.out.println("打折后:"+price);
        return  super.discount(price);
            //100-10
    }
}
